<include file="Common:header" />
<h3>搜索已有话题</h3>
<form action='<{:SITE_URL}>/admin.php?s=/Topic/index' method="POST">
<table class="table" style="margin:5px 0 20px 0">
<tr>
<td>输入话题名称：</td>
<td>
    <input type="text" name="topicname" value="<{$topicname}>" class="txt_input">
</td>
<tr>
    <td>&nbsp;</td>
    <td><input type="submit" class="button1" value="提交搜索"></td>
</tr>
</table>
</form>
<h3>话题列表<php>if($topicname){</php>&nbsp;&nbsp;(<a href="<{:SITE_URL}>/admin.php?s=/Topic">显示全部</a>)<php>}</php></h3>
<form action='<{:SITE_URL}>/admin.php?s=/Topic/deltopic' method="POST">
<table class="table" style="margin:5px 0 20px 0">
<tr>
    <td width="90px">&nbsp;</td>
    <td width="250px">话题名称</td>
    <td width="100px">
    <php>if($order!=1){</php><a href="<{:SITE_URL}>/admin.php?s=/Topic&order=1">话题数目↓</a><php>}else{</php>
    <a href="<{:SITE_URL}>/admin.php?s=/Topic&order=2">话题数目↑</a><php>}</php>
    </td>
    <td width="100px">
    <php>if($order!=3){</php><a href="<{:SITE_URL}>/admin.php?s=/Topic&order=3">关注人数↓</a><php>}else{</php>
    <a href="<{:SITE_URL}>/admin.php?s=/Topic&order=4">关注人数↑</a><php>}</php>
    </td>
    <td width="100px">
    <php>if($order!=5){</php><a href="<{:SITE_URL}>/admin.php?s=/Topic&order=5">推荐↓</a><php>}else{</php>
    <a href="<{:SITE_URL}>/admin.php?s=/Topic&order=6">推荐↑</a><php>}</php>
    </td>
    <td width="250px">
    <php>if($order!=7){</php><a href="<{:SITE_URL}>/admin.php?s=/Topic&order=7">话题描述↓</a><php>}else{</php>
    <a href="<{:SITE_URL}>/admin.php?s=/Topic&order=8">话题描述↑</a><php>}</php>
    </td>
    <td width="200px">← 点击标题排序查看</td>
</tr>
<php>foreach($content as $val){</php>
    <tr>
        <td valign="top"><input type="checkbox" name="deltp[]" class="checkbox" value="<{$val[id]}>"></td>
        <td valign="top"><{$val[topicname]}></td>
        <td valign="top"><{$val[topictimes]}></td>
        <td valign="top"><{$val[follownum]}></td>
        <td valign="top"><{:($val[tuijian]==1?'<font color="red">是</font>':'否')}></td>
        <td valign="top"><input type="text" style="width:150px" id="info_<{$val[id]}>" value="<{:($val[info]=='0' || !$val[info])?'':$val[info]}>"><input type="button" onclick="topicinfo(<{$val[id]}>)" value="提交"></td>
        <td valign="top"><a href="<{:SITE_URL}>/index.php?s=/k/<{$val[topicname]}>" target="_blank">查看话题</a>&nbsp;&nbsp;
        <php>if($val[tuijian]==0){</php>
        <a href="<{:SITE_URL}>/admin.php?s=/Topic/tuijian&id=<{$val[id]}>">推荐话题</a>
        <php>}else{</php>
        <a href="<{:SITE_URL}>/admin.php?s=/Topic/deltuijian&id=<{$val[id]}>">取消推荐</a>
        <php>}</php>
        </td>
    </tr>
<php>}</php>
<tr>
    <td><input type="checkbox" onclick="CheckAll('deltp', 'chkall')" id="chkall" name="chkall" class="checkbox"> 删除?</td>
    <td colspan="5"><input type="submit" class="button1" value="提交删除"></td>
</tr>
</table>
</form>
<div class="page"><{$page}></div>
<include file="Common:foot" />